Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Passing single label to .loc rather than list of labels. Change deprecated delim_whitespace=True to sep=r'\s+' #224

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dirwin5
Copy link

@dirwin5 dirwin5 commented Sep 6, 2024

Passing single label to .loc rather than list of labels to return series rather than dataframe. This avoids FutureWarning: calling float on single element series and FutureWarning: Series.getitem treating keys as positions is deprecated.

Changed deprecated delim_whitespace=True to sep=r'\s+'.

Changed '\s+' to r'\s+' to remove invalid escape sequence '\s' warning.

Changed depreciated delim_whitespace=True to sep=r'\s+'. Changed '\s+' to r'\s+'
@bemcdonnell
Copy link
Member

@dirwin5, are these changes friendly with pandas<2? When it comes to major upgrades in dependencies, we are always very careful and strategic as to not force everyone to upgrade straight-away. We can always do a quick test on that with the requirements file.

@dirwin5
Copy link
Author

dirwin5 commented Sep 6, 2024

Hi @bemcdonnell, I believe they won't break pandas<2. I ran the all the tests with pandas 1.4.0 and numpy 1.21.0 and they all passed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants